package com.traffic.managent.model.system;

import com.traffic.managent.annotation.ModelBind;
import com.traffic.managent.base.CxBaseModel;
import com.traffic.managent.jedis.RedisKit;
import com.traffic.managent.plugin.ParamInitThread;

@ModelBind(table = "cx_role", key = "ids")
public class Role extends CxBaseModel<Role> {

	private static final long serialVersionUID = 1L;
	public static final Role dao = new Role();

	
	/**
	 * 添加或者更新缓存
	 */
	public void cacheAdd(String ids) {
		RedisKit.put(ParamInitThread.cacheStart_role + ids, Role.dao.findById(ids));
	}
}